package com.ykq.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @program: keyboard
 * @description:
 * @author: 闫克起2
 * @create: 2023-07-20 15:15
 **/
@Data
public class Staff {
    private Integer id;
    private Integer staffid;
    private String staffname;
    private String password;
    private String idcard;
    private String address;
    private String  phone;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date entrytime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date leavetime;
    private Integer state;
    private Integer roleid;
    private Integer deptid;
    private String url;
    private Integer branchid;

    //员工所在部门
    private Dept dept;
    //员工所在门店
    private Branch branch;
    //员工所具有的角色
    private Role role;
}
